package com.dxy.yesas2020goals.study.partone.disignprinciple.openclosedprinciple;

/**
 * @author victorydeng
 * @Classname JavaCourse
 * @Description java课程类实现了Icourse接口
 * @Date 2020/2/24 15:35
 * @Created by victorydeng
 */
public class JavaCourse implements ICourse {
  //java课程的id
  Integer id;
  //java课程的名字
  String name;
  //java课程的价格
  Double price;

  public JavaCourse(Integer id, String name, Double price) {
    id = id;
    this.name = name;
    this.price = price;
  }

  @Override
  public Integer getId() {
    return this.id;
  }

  @Override
  public String getName() {
    return this.name;
  }

  @Override
  public Double getPrice() {
    return this.price;
  }
}
